import Cookies from 'js-cookie'
//用于用户登录验证、保持会话状态以及登出时清理用户信息等方面
const TokenKey = 'Management-vue-token'

export function getToken(){
    return Cookies.get(TokenKey)
}

export function setToken(token){
    return Cookies.set(TokenKey,token)
}

export function removeToken(){
    return Cookies.remove(TokenKey)
}